using AiQiuQuan.Sport.Model.Enums;
using System.Text.Json.Serialization;

namespace AiQiuQuan.Sport.Model.Models
{
    /// <summary>
    /// 课程订单请求dto
    /// </summary>
    public class CourseOrderPageRequestDto : PageRequest
    {
        /// <summary>
        /// 名称
        /// </summary>
        public string? Name { get; set; }

        /// <summary>
        /// 订单号
        /// </summary>
        public string? OrderNo { get; set; }

        /// <summary>
        /// 课程类型 1次数课程、2期间课程、3活动课程
        /// </summary>
        public CourseTypeEnum? CourseType { get; set; }

        /// <summary>
        /// 课程地址
        /// </summary>
        public string? Address { get; set; }

        /// <summary>
        /// 状态：1未支付、2已支付、5部分退款、6全部退款、8已完成、10已取消
        /// </summary>
        public CourseOrderStateEnum? State { get; set; }

        /// <summary>
        /// 查询日期
        /// </summary>
        public DateTimeOffset? QueryDate { get; set; }

        /// <summary>
        /// 用户名称
        /// </summary>
        public string? UserName { get; set; }

        /// <summary>
        /// 电话
        /// </summary>
        public string? PhoneNo { get; set; }

        ///// <summary>
        ///// 场馆ID
        ///// </summary>
        //public Guid? VenueId { get; set; }

        /// <summary>
        /// 是否查询自己
        /// </summary>
        [JsonIgnore]
        public bool IsSelf { get; set; }
    }
}
